package cn.stylefeng.guns.modular.web.service.impl;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.web.entity.GiftLevel;
import cn.stylefeng.guns.modular.web.mapper.GiftLevelMapper;
import cn.stylefeng.guns.modular.web.service.IGiftLevelService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 描述：礼品级别表 service业务层
 * 作者：chenhuiyan
 * 时间：2020-04-26
 */
@Service
@Transactional(readOnly = true)
public class GiftLevelServiceImpl extends ServiceImpl<GiftLevelMapper, GiftLevel> implements IGiftLevelService {

    /**
     * 查询列表
     * @param params
     * @return
     */
    public Page<Map<String, Object>> list(Map<String, Object> params) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.list(page, params);
    }
}
